package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学堂考评题目表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ExamItem extends Model<ExamItem> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 学堂id
     */
    private String growCollegeId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 题目
     */
    private String itemName;

    /**
     * 题目类型 0单选 1多选
     */
    private Integer itemType;

    /**
     * 每题回答时间(秒)
     */
    private String itemAnswerTime;

    /**
     * 题目答案
     */
    private String itemAnswer;


    public static final String ID = "id";

    public static final String GROW_COLLEGE_ID = "grow_college_id";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_USER = "create_user";

    public static final String ITEM_NAME = "item_name";

    public static final String ITEM_TYPE = "item_type";

    public static final String ITEM_ANSWER_TIME = "item_answer_time";

    public static final String ITEM_ANSWER = "item_answer";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
